package com.example.tool.bean.wcaiexcel;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class RobotMessage {
    protected String msgtype="text";
    private Text text;
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Text {
        private String content;
        private List<String> mentioned_list;
        private List<String> mentioned_mobile_list;
    }

    public static RobotMessage initMessage(String content,List<String> mentioned_list,List<String> mentioned_mobile_list){
        RobotMessage robotMessage = new RobotMessage();
        robotMessage.setMsgtype("text");
        Text textInfo = new Text();
        textInfo.setContent(content);
        textInfo.setMentioned_list(mentioned_list);
        textInfo.setMentioned_mobile_list(mentioned_mobile_list);
        robotMessage.setText(textInfo);
        return robotMessage;
    }
    public static RobotMessage initMessage(String content){
        return initMessage(content,null,null);
    }




}
